package cn.com.baozun.sany.workbench.application.event;

import cn.com.baozun.sany.workbench.online.manager.entity.OnlineChange;
import org.springframework.context.ApplicationEvent;

/**
 * @title: OnlineChangeEvent
 * @description:
 * @author: guan.xin
 * @create: 2021-05-26 19:55
 * @since: JDK8
 */
public class OnlineChangeEvent extends ApplicationEvent {

    private OnlineChange onlineChange;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public OnlineChangeEvent(Object source) {
        super(source);
    }

    public OnlineChangeEvent(Object source, OnlineChange onlineChange) {
        super(source);
        this.onlineChange = onlineChange;
    }

    public OnlineChange getOnlineChange() {
        return onlineChange;
    }
}
